package com.logtoolkit.controller;

import com.alibaba.fastjson.JSONObject;
import com.logtoolkit.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MainController {

    @Autowired
    private MainService mainService;

    @GetMapping("")
    public JSONObject index() {
        return mainService.index();
    }

}
